package com.dd.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Category implements Serializable {
    @Serial
    private static final long serialVersionUID = -2566295758856474422L;

    // 主键  类别Id
    private Integer categoryId;

    // 类别名称
    private String categoryName;

    // 商品列表
    private List<Products> productsList;

    public List<Products> getProductsList() {
        return productsList;
    }

    public void setProductsList(List<Products> productsList) {
        this.productsList = productsList;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return "Category{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                '}';
    }
}
